<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Eigen: Eigen::DiagonalMatrix&lt; Scalar_, SizeAtCompileTime, MaxSizeAtCompileTime &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(function() { init_search(); });
/* @license-end */
</script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
</script>
<script type="text/javascript" async="async" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="eigendoxy.css" rel="stylesheet" type="text/css">
<!--  -->
<script type="text/javascript" src="eigen_navtree_hacks.js"></script>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="Eigen_Silly_Professor_64x64.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname"><a href="http://eigen.tuxfamily.org">Eigen</a>
   &#160;<span id="projectnumber">3.4.90 (git rev 67eeba6e720c5745abc77ae6c92ce0a44aa7b7ae)</span>
   </div>
  </td>
   <td>        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.svg"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.svg" alt=""/></a>
          </span>
        </div>
</td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classEigen_1_1DiagonalMatrix.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="classEigen_1_1DiagonalMatrix-members.html">List of all members</a> &#124;
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">Eigen::DiagonalMatrix&lt; Scalar_, SizeAtCompileTime, MaxSizeAtCompileTime &gt; Class Template Reference<div class="ingroups"><a class="el" href="group__DenseMatrixManipulation__chapter.html">Dense matrix and array manipulation</a> &raquo; <a class="el" href="group__DenseMatrixManipulation__Reference.html">Reference</a> &raquo; <a class="el" href="group__Core__Module.html">Core module</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename Scalar_, int SizeAtCompileTime, int MaxSizeAtCompileTime&gt;<br />
class Eigen::DiagonalMatrix&lt; Scalar_, SizeAtCompileTime, MaxSizeAtCompileTime &gt;</h3>

<p>Represents a diagonal matrix with its storage. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">Scalar_</td><td>the type of coefficients </td></tr>
    <tr><td class="paramname">SizeAtCompileTime</td><td>the dimension of the matrix, or Dynamic </td></tr>
    <tr><td class="paramname">MaxSizeAtCompileTime</td><td>the dimension of the matrix, or Dynamic. This parameter is optional and defaults to SizeAtCompileTime. Most of the time, you do not need to specify it.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd>class <a class="el" href="classEigen_1_1DiagonalWrapper.html" title="Expression of a diagonal matrix.">DiagonalWrapper</a> </dd></dl>
</div>
<p>Inherits DiagonalBase&lt; DiagonalMatrix&lt; Scalar_, SizeAtCompileTime, MaxSizeAtCompileTime &gt; &gt;.</p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a2339b037cd818ee8dffd3e7b4617842f"><td class="memItemLeft" align="right" valign="top">DiagonalVectorType &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classEigen_1_1DiagonalMatrix.html#a2339b037cd818ee8dffd3e7b4617842f">diagonal</a> ()</td></tr>
<tr class="separator:a2339b037cd818ee8dffd3e7b4617842f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8bbe3776f875294ac357634426a6a0fa"><td class="memItemLeft" align="right" valign="top">const DiagonalVectorType &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classEigen_1_1DiagonalMatrix.html#a8bbe3776f875294ac357634426a6a0fa">diagonal</a> () const</td></tr>
<tr class="separator:a8bbe3776f875294ac357634426a6a0fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a56f701a29db71352170fe33bcfb73558"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classEigen_1_1DiagonalMatrix.html#a56f701a29db71352170fe33bcfb73558">DiagonalMatrix</a> ()</td></tr>
<tr class="separator:a56f701a29db71352170fe33bcfb73558"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa15465616e8d449c2492414d61967a38"><td class="memTemplParams" colspan="2">template&lt;typename OtherDerived &gt; </td></tr>
<tr class="memitem:aa15465616e8d449c2492414d61967a38"><td class="memTemplItemLeft" align="right" valign="top">&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classEigen_1_1DiagonalMatrix.html#aa15465616e8d449c2492414d61967a38">DiagonalMatrix</a> (const DiagonalBase&lt; OtherDerived &gt; &amp;other)</td></tr>
<tr class="separator:aa15465616e8d449c2492414d61967a38"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad0886843b689ef6aefc3385d245ebe78"><td class="memTemplParams" colspan="2">template&lt;typename OtherDerived &gt; </td></tr>
<tr class="memitem:ad0886843b689ef6aefc3385d245ebe78"><td class="memTemplItemLeft" align="right" valign="top">&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classEigen_1_1DiagonalMatrix.html#ad0886843b689ef6aefc3385d245ebe78">DiagonalMatrix</a> (const <a class="el" href="classEigen_1_1MatrixBase.html">MatrixBase</a>&lt; OtherDerived &gt; &amp;other)</td></tr>
<tr class="separator:ad0886843b689ef6aefc3385d245ebe78"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af802cafdbae7e3bbd9f303be792eaf88"><td class="memTemplParams" colspan="2">template&lt;typename... ArgTypes&gt; </td></tr>
<tr class="memitem:af802cafdbae7e3bbd9f303be792eaf88"><td class="memTemplItemLeft" align="right" valign="top">&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classEigen_1_1DiagonalMatrix.html#af802cafdbae7e3bbd9f303be792eaf88">DiagonalMatrix</a> (const Scalar &amp;a0, const Scalar &amp;a1, const Scalar &amp;a2, const ArgTypes &amp;... args)</td></tr>
<tr class="memdesc:af802cafdbae7e3bbd9f303be792eaf88"><td class="mdescLeft">&#160;</td><td class="mdescRight">Construct a diagonal matrix with fixed size from an arbitrary number of coefficients.  <a href="classEigen_1_1DiagonalMatrix.html#af802cafdbae7e3bbd9f303be792eaf88">More...</a><br /></td></tr>
<tr class="separator:af802cafdbae7e3bbd9f303be792eaf88"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a30b0c1bc5ddea18a0c1793a0e67d31c6"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classEigen_1_1DiagonalMatrix.html#a30b0c1bc5ddea18a0c1793a0e67d31c6">DiagonalMatrix</a> (const Scalar &amp;x, const Scalar &amp;y)</td></tr>
<tr class="separator:a30b0c1bc5ddea18a0c1793a0e67d31c6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7ef13a03be1c1ff45d8a21943bda6b19"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classEigen_1_1DiagonalMatrix.html#a7ef13a03be1c1ff45d8a21943bda6b19">DiagonalMatrix</a> (const Scalar &amp;x, const Scalar &amp;y, const Scalar &amp;z)</td></tr>
<tr class="separator:a7ef13a03be1c1ff45d8a21943bda6b19"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abf7fea16b22bf94e8d5e52c371d87ea2"><td class="memItemLeft" align="right" valign="top"><a id="abf7fea16b22bf94e8d5e52c371d87ea2"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classEigen_1_1DiagonalMatrix.html#abf7fea16b22bf94e8d5e52c371d87ea2">DiagonalMatrix</a> (const std::initializer_list&lt; std::initializer_list&lt; Scalar &gt;&gt; &amp;list)</td></tr>
<tr class="memdesc:abf7fea16b22bf94e8d5e52c371d87ea2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs a <a class="el" href="classEigen_1_1DiagonalMatrix.html" title="Represents a diagonal matrix with its storage.">DiagonalMatrix</a> and initializes it by elements given by an initializer list of initializer lists <span class="cpp11">[c++11]</span> <br /></td></tr>
<tr class="separator:abf7fea16b22bf94e8d5e52c371d87ea2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a81ff96f1542b3a042c8418db9c3124a7"><td class="memItemLeft" align="right" valign="top"><a id="a81ff96f1542b3a042c8418db9c3124a7"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classEigen_1_1DiagonalMatrix.html#a81ff96f1542b3a042c8418db9c3124a7">DiagonalMatrix</a> (DiagonalVectorType &amp;&amp;diag)</td></tr>
<tr class="memdesc:a81ff96f1542b3a042c8418db9c3124a7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs a <a class="el" href="classEigen_1_1DiagonalMatrix.html" title="Represents a diagonal matrix with its storage.">DiagonalMatrix</a> from an r-value diagonal vector type. <br /></td></tr>
<tr class="separator:a81ff96f1542b3a042c8418db9c3124a7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa5070f3599cf858728a799b4183281e3"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classEigen_1_1DiagonalMatrix.html#aa5070f3599cf858728a799b4183281e3">DiagonalMatrix</a> (<a class="el" href="namespaceEigen.html#a62e77e0933482dafde8fe197d9a2cfde">Index</a> dim)</td></tr>
<tr class="separator:aa5070f3599cf858728a799b4183281e3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aec014875df24c2a59a44949cdde47d46"><td class="memTemplParams" colspan="2">template&lt;typename OtherDerived &gt; </td></tr>
<tr class="memitem:aec014875df24c2a59a44949cdde47d46"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="classEigen_1_1DiagonalMatrix.html">DiagonalMatrix</a> &amp;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classEigen_1_1DiagonalMatrix.html#aec014875df24c2a59a44949cdde47d46">operator=</a> (const DiagonalBase&lt; OtherDerived &gt; &amp;other)</td></tr>
<tr class="separator:aec014875df24c2a59a44949cdde47d46"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab49a944273673a6eaf0f0592bae0be10"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classEigen_1_1DiagonalMatrix.html#ab49a944273673a6eaf0f0592bae0be10">resize</a> (<a class="el" href="namespaceEigen.html#a62e77e0933482dafde8fe197d9a2cfde">Index</a> size)</td></tr>
<tr class="separator:ab49a944273673a6eaf0f0592bae0be10"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9714003b74045bf6272ff8360833469b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classEigen_1_1DiagonalMatrix.html#a9714003b74045bf6272ff8360833469b">setIdentity</a> ()</td></tr>
<tr class="separator:a9714003b74045bf6272ff8360833469b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a88e637f72b4f72d272d3ce68401f326c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classEigen_1_1DiagonalMatrix.html#a88e637f72b4f72d272d3ce68401f326c">setIdentity</a> (<a class="el" href="namespaceEigen.html#a62e77e0933482dafde8fe197d9a2cfde">Index</a> size)</td></tr>
<tr class="separator:a88e637f72b4f72d272d3ce68401f326c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8ff4f0c8f375c496281a8b4cf3cf6149"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classEigen_1_1DiagonalMatrix.html#a8ff4f0c8f375c496281a8b4cf3cf6149">setZero</a> ()</td></tr>
<tr class="separator:a8ff4f0c8f375c496281a8b4cf3cf6149"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa9278182a882c363f54fa8d7b4864efa"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classEigen_1_1DiagonalMatrix.html#aa9278182a882c363f54fa8d7b4864efa">setZero</a> (<a class="el" href="namespaceEigen.html#a62e77e0933482dafde8fe197d9a2cfde">Index</a> size)</td></tr>
<tr class="separator:aa9278182a882c363f54fa8d7b4864efa"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a56f701a29db71352170fe33bcfb73558"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a56f701a29db71352170fe33bcfb73558">&#9670;&nbsp;</a></span>DiagonalMatrix() <span class="overload">[1/7]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Scalar_ , int SizeAtCompileTime, int MaxSizeAtCompileTime&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classEigen_1_1DiagonalMatrix.html">Eigen::DiagonalMatrix</a>&lt; Scalar_, SizeAtCompileTime, MaxSizeAtCompileTime &gt;::<a class="el" href="classEigen_1_1DiagonalMatrix.html">DiagonalMatrix</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Default constructor without initialization </p>

</div>
</div>
<a id="aa5070f3599cf858728a799b4183281e3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa5070f3599cf858728a799b4183281e3">&#9670;&nbsp;</a></span>DiagonalMatrix() <span class="overload">[2/7]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Scalar_ , int SizeAtCompileTime, int MaxSizeAtCompileTime&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classEigen_1_1DiagonalMatrix.html">Eigen::DiagonalMatrix</a>&lt; Scalar_, SizeAtCompileTime, MaxSizeAtCompileTime &gt;::<a class="el" href="classEigen_1_1DiagonalMatrix.html">DiagonalMatrix</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespaceEigen.html#a62e77e0933482dafde8fe197d9a2cfde">Index</a>&#160;</td>
          <td class="paramname"><em>dim</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Constructs a diagonal matrix with given dimension <br  />
 </p>

</div>
</div>
<a id="a30b0c1bc5ddea18a0c1793a0e67d31c6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a30b0c1bc5ddea18a0c1793a0e67d31c6">&#9670;&nbsp;</a></span>DiagonalMatrix() <span class="overload">[3/7]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Scalar_ , int SizeAtCompileTime, int MaxSizeAtCompileTime&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classEigen_1_1DiagonalMatrix.html">Eigen::DiagonalMatrix</a>&lt; Scalar_, SizeAtCompileTime, MaxSizeAtCompileTime &gt;::<a class="el" href="classEigen_1_1DiagonalMatrix.html">DiagonalMatrix</a> </td>
          <td>(</td>
          <td class="paramtype">const Scalar &amp;&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const Scalar &amp;&#160;</td>
          <td class="paramname"><em>y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>2D constructor. </p>

</div>
</div>
<a id="a7ef13a03be1c1ff45d8a21943bda6b19"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7ef13a03be1c1ff45d8a21943bda6b19">&#9670;&nbsp;</a></span>DiagonalMatrix() <span class="overload">[4/7]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Scalar_ , int SizeAtCompileTime, int MaxSizeAtCompileTime&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classEigen_1_1DiagonalMatrix.html">Eigen::DiagonalMatrix</a>&lt; Scalar_, SizeAtCompileTime, MaxSizeAtCompileTime &gt;::<a class="el" href="classEigen_1_1DiagonalMatrix.html">DiagonalMatrix</a> </td>
          <td>(</td>
          <td class="paramtype">const Scalar &amp;&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const Scalar &amp;&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const Scalar &amp;&#160;</td>
          <td class="paramname"><em>z</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>3D constructor. </p>

</div>
</div>
<a id="af802cafdbae7e3bbd9f303be792eaf88"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af802cafdbae7e3bbd9f303be792eaf88">&#9670;&nbsp;</a></span>DiagonalMatrix() <span class="overload">[5/7]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Scalar_ , int SizeAtCompileTime, int MaxSizeAtCompileTime&gt; </div>
<div class="memtemplate">
template&lt;typename... ArgTypes&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classEigen_1_1DiagonalMatrix.html">Eigen::DiagonalMatrix</a>&lt; Scalar_, SizeAtCompileTime, MaxSizeAtCompileTime &gt;::<a class="el" href="classEigen_1_1DiagonalMatrix.html">DiagonalMatrix</a> </td>
          <td>(</td>
          <td class="paramtype">const Scalar &amp;&#160;</td>
          <td class="paramname"><em>a0</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const Scalar &amp;&#160;</td>
          <td class="paramname"><em>a1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const Scalar &amp;&#160;</td>
          <td class="paramname"><em>a2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const ArgTypes &amp;...&#160;</td>
          <td class="paramname"><em>args</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Construct a diagonal matrix with fixed size from an arbitrary number of coefficients. </p>
<dl class="section warning"><dt>Warning</dt><dd>To construct a diagonal matrix of fixed size, the number of values passed to this constructor must match the fixed dimension of <code>*this</code>.</dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classEigen_1_1DiagonalMatrix.html#a30b0c1bc5ddea18a0c1793a0e67d31c6">DiagonalMatrix(const Scalar&amp;, const Scalar&amp;)</a> </dd>
<dd>
<a class="el" href="classEigen_1_1DiagonalMatrix.html#a7ef13a03be1c1ff45d8a21943bda6b19">DiagonalMatrix(const Scalar&amp;, const Scalar&amp;, const Scalar&amp;)</a> </dd></dl>

</div>
</div>
<a id="aa15465616e8d449c2492414d61967a38"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa15465616e8d449c2492414d61967a38">&#9670;&nbsp;</a></span>DiagonalMatrix() <span class="overload">[6/7]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Scalar_ , int SizeAtCompileTime, int MaxSizeAtCompileTime&gt; </div>
<div class="memtemplate">
template&lt;typename OtherDerived &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classEigen_1_1DiagonalMatrix.html">Eigen::DiagonalMatrix</a>&lt; Scalar_, SizeAtCompileTime, MaxSizeAtCompileTime &gt;::<a class="el" href="classEigen_1_1DiagonalMatrix.html">DiagonalMatrix</a> </td>
          <td>(</td>
          <td class="paramtype">const DiagonalBase&lt; OtherDerived &gt; &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Copy constructor. </p>

</div>
</div>
<a id="ad0886843b689ef6aefc3385d245ebe78"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad0886843b689ef6aefc3385d245ebe78">&#9670;&nbsp;</a></span>DiagonalMatrix() <span class="overload">[7/7]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Scalar_ , int SizeAtCompileTime, int MaxSizeAtCompileTime&gt; </div>
<div class="memtemplate">
template&lt;typename OtherDerived &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classEigen_1_1DiagonalMatrix.html">Eigen::DiagonalMatrix</a>&lt; Scalar_, SizeAtCompileTime, MaxSizeAtCompileTime &gt;::<a class="el" href="classEigen_1_1DiagonalMatrix.html">DiagonalMatrix</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classEigen_1_1MatrixBase.html">MatrixBase</a>&lt; OtherDerived &gt; &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>generic constructor from expression of the diagonal coefficients </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a2339b037cd818ee8dffd3e7b4617842f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2339b037cd818ee8dffd3e7b4617842f">&#9670;&nbsp;</a></span>diagonal() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Scalar_ , int SizeAtCompileTime, int MaxSizeAtCompileTime&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">DiagonalVectorType&amp; <a class="el" href="classEigen_1_1DiagonalMatrix.html">Eigen::DiagonalMatrix</a>&lt; Scalar_, SizeAtCompileTime, MaxSizeAtCompileTime &gt;::diagonal </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>a reference to the stored vector of diagonal coefficients. </dd></dl>

</div>
</div>
<a id="a8bbe3776f875294ac357634426a6a0fa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8bbe3776f875294ac357634426a6a0fa">&#9670;&nbsp;</a></span>diagonal() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Scalar_ , int SizeAtCompileTime, int MaxSizeAtCompileTime&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const DiagonalVectorType&amp; <a class="el" href="classEigen_1_1DiagonalMatrix.html">Eigen::DiagonalMatrix</a>&lt; Scalar_, SizeAtCompileTime, MaxSizeAtCompileTime &gt;::diagonal </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>const version of <a class="el" href="classEigen_1_1DiagonalMatrix.html#a2339b037cd818ee8dffd3e7b4617842f">diagonal()</a>. </p>

</div>
</div>
<a id="aec014875df24c2a59a44949cdde47d46"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aec014875df24c2a59a44949cdde47d46">&#9670;&nbsp;</a></span>operator=()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Scalar_ , int SizeAtCompileTime, int MaxSizeAtCompileTime&gt; </div>
<div class="memtemplate">
template&lt;typename OtherDerived &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classEigen_1_1DiagonalMatrix.html">DiagonalMatrix</a>&amp; <a class="el" href="classEigen_1_1DiagonalMatrix.html">Eigen::DiagonalMatrix</a>&lt; Scalar_, SizeAtCompileTime, MaxSizeAtCompileTime &gt;::operator= </td>
          <td>(</td>
          <td class="paramtype">const DiagonalBase&lt; OtherDerived &gt; &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Copy operator. </p>

</div>
</div>
<a id="ab49a944273673a6eaf0f0592bae0be10"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab49a944273673a6eaf0f0592bae0be10">&#9670;&nbsp;</a></span>resize()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Scalar_ , int SizeAtCompileTime, int MaxSizeAtCompileTime&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classEigen_1_1DiagonalMatrix.html">Eigen::DiagonalMatrix</a>&lt; Scalar_, SizeAtCompileTime, MaxSizeAtCompileTime &gt;::resize </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespaceEigen.html#a62e77e0933482dafde8fe197d9a2cfde">Index</a>&#160;</td>
          <td class="paramname"><em>size</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Resizes to given size. </p>

</div>
</div>
<a id="a9714003b74045bf6272ff8360833469b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9714003b74045bf6272ff8360833469b">&#9670;&nbsp;</a></span>setIdentity() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Scalar_ , int SizeAtCompileTime, int MaxSizeAtCompileTime&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classEigen_1_1DiagonalMatrix.html">Eigen::DiagonalMatrix</a>&lt; Scalar_, SizeAtCompileTime, MaxSizeAtCompileTime &gt;::setIdentity </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Sets this matrix to be the identity matrix of the current size. </p>

</div>
</div>
<a id="a88e637f72b4f72d272d3ce68401f326c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a88e637f72b4f72d272d3ce68401f326c">&#9670;&nbsp;</a></span>setIdentity() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Scalar_ , int SizeAtCompileTime, int MaxSizeAtCompileTime&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classEigen_1_1DiagonalMatrix.html">Eigen::DiagonalMatrix</a>&lt; Scalar_, SizeAtCompileTime, MaxSizeAtCompileTime &gt;::setIdentity </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespaceEigen.html#a62e77e0933482dafde8fe197d9a2cfde">Index</a>&#160;</td>
          <td class="paramname"><em>size</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Sets this matrix to be the identity matrix of the given size. </p>

</div>
</div>
<a id="a8ff4f0c8f375c496281a8b4cf3cf6149"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8ff4f0c8f375c496281a8b4cf3cf6149">&#9670;&nbsp;</a></span>setZero() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Scalar_ , int SizeAtCompileTime, int MaxSizeAtCompileTime&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classEigen_1_1DiagonalMatrix.html">Eigen::DiagonalMatrix</a>&lt; Scalar_, SizeAtCompileTime, MaxSizeAtCompileTime &gt;::setZero </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Sets all coefficients to zero. </p>

</div>
</div>
<a id="aa9278182a882c363f54fa8d7b4864efa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa9278182a882c363f54fa8d7b4864efa">&#9670;&nbsp;</a></span>setZero() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Scalar_ , int SizeAtCompileTime, int MaxSizeAtCompileTime&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classEigen_1_1DiagonalMatrix.html">Eigen::DiagonalMatrix</a>&lt; Scalar_, SizeAtCompileTime, MaxSizeAtCompileTime &gt;::setZero </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespaceEigen.html#a62e77e0933482dafde8fe197d9a2cfde">Index</a>&#160;</td>
          <td class="paramname"><em>size</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Resizes and sets all coefficients to zero. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="DiagonalMatrix_8h_source.html">DiagonalMatrix.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespaceEigen.html">Eigen</a></li><li class="navelem"><a class="el" href="classEigen_1_1DiagonalMatrix.html">DiagonalMatrix</a></li>
    <li class="footer">Generated on Thu Apr 21 2022 13:07:55 for Eigen by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
